﻿using Quartz.Impl.AdoJobStore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hinacom.Scheduler
{
    /// <summary>
    /// 对Quartz IDriverDelegate的一些扩展
    /// </summary>
    interface IDriverDelegateExt
    {
        void InsertJobHistory(ConnectionAndTransactionHolder cth, JobHistory history);
        void UpdateJobHistory(ConnectionAndTransactionHolder cth, JobHistory history);
        IEnumerable<JobHistory> GetJobHistories(ConnectionAndTransactionHolder cth, string jobname, string jobgroup, int? lastLoadedId);
        string GetJobHistoryLog(ConnectionAndTransactionHolder cth, int historyId);
    }
}
